<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{layout/app}">
<body>
<div class="container" layout:fragment="content">
    <!-- Outer Row -->
    <div class="row justify-content-center">

        <div class="col-xl-10 col-lg-12 col-md-9">

            <div class="card o-hidden border-0 shadow-lg my-5">
                <div class="card-body p-0">
                    <!-- Nested Row within Card Body -->
                    <div class="row">
                        <div class="col-lg-6 d-none d-lg-block bg-login-image"></div>
                        <div class="col-lg-6">
                            <div class="p-5">
                                <div class="text-center">
                                    <h1 class="h4 text-gray-900 mb-4" th:text="${projectName}"></h1>
                                </div>
                                <form class="user" th:action="@{/login}" th:method="post">
                                    <div class="form-group">
                                        <input type="text" name="mobile" class="form-control form-control-user" id="exampleInputMobile"  placeholder="输入手机号" required>
                                    </div>
                                    <div class="form-group">
                                        <input type="password" name="password" class="form-control form-control-user" id="exampleInputPassword" placeholder="输入密码" required>
                                    </div>

                                    <div class="form-group input-group">
                                        <span class="input-group-addon"><img id="captcha_img" alt="点击更换" title="点击更换"
                                                                             onclick="refresh()" src="/kaptcha" /></span>
                                        <input style="height: 50px;" type="text" name="code" class="form-control" placeholder="输入验证码" required>
                                    </div>
                                    <button type="submit" class="btn btn-primary btn-user btn-block">
                                        登录
                                    </button>
                                </form>
                                <p style="color: red;text-align: center; margin-top: 10px;" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                                <hr>

                                <div class="text-center">
                                    <a class="small" th:href="@{/register.html}">注册</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>

    </div>
</div>
</body>
</html>